package com.xinxing.learning.datasource.domain.convertor;

import com.xinxing.learning.datasource.domain.query.OrderInfoBaseQuery;
import com.xinxing.learning.datasource.domain.query.UserOrderInfoQuery;
import com.xinxing.learning.datasource.domain.request.UserOrderInfoRequest;
import com.xinxing.learning.datasource.entity.OrderInfo;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface OrderConvertor {

    OrderInfo dtoConvertOrderInfo(UserOrderInfoRequest userOrderInfoRequest);

    OrderInfoBaseQuery userQueryToBaseOrder(UserOrderInfoQuery userOrderInfoQuery);
}
